package utils;

public class Page {
    private int totalCount;
    private int totalPage;
    private int pageSize = 10 ;
    private  int currentPage;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totaLcount) {
        this.totalCount = totaLcount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage() {
        this.totalPage = totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }
}
